# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
# Contributor: Jason Taylor <jftaylor21@gmail.com>
# Contributor: Georg Grabler <ggrabler@chello.at>

pkgname=kdbg
pkgver=3.0.1
pkgrel=2
pkgdesc='A graphical debugger interface'
arch=(loong64 x86_64)
url='http://www.kdbg.org'
license=(GPL)
depends=(gcc-libs
         gdb
         glibc
         kconfig5
         kconfigwidgets5
         kcoreaddons5
         ki18n5
         kiconthemes5
         kwidgetsaddons5
         kwindowsystem5
         kxmlgui5
         qt5-base)
makedepends=(extra-cmake-modules)
source=(https://downloads.sourceforge.net/project/kdbg/Source%20Code/$pkgver/kdbg-$pkgver.tar.gz)
sha256sums=('449df80e7c1de05b2ce9c844707f005bfb7e4e833f870ff8b3756b4469375dbd')

build() {
  cmake -B build -S $pkgname-$pkgver
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
